package com.huli.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huli.domain.Orders;
import com.huli.dto.OrdersByGarageDto;
import com.huli.param.OrdersByOwnerParam;
import com.huli.param.OrdersByUserParam;

import java.util.List;

public interface OrdersMapper extends BaseMapper<Orders> {
    List<Orders> getByUser(OrdersByUserParam param);
    List<Orders> getByOwner(OrdersByOwnerParam param);
    List<Orders> getByGarage(int garageId);
    int getUserIdByOrdersId(int ordersId);
}
